#ifndef CUBICSPLINE2D_H
#define CUBICSPLINE2D_H
#include <vector>
#include <iostream>
#include <algorithm>
#include <numeric>
#include <cmath>
#include "CubicSpline1D.h"
#include "paths_struct.h"


class CubicSpline2D
{
public:
    CubicSpline2D();
    CubicSpline2D(const std::vector<std::pair<double, double>>& xy_points, 
                                         const std::vector<double>& s, const int& index);
    SplineResult calc_total(const double& s);
    CubicSpline1D sx, sy;
};

#endif    // CUBICSPLINE2D_H